shortcuts label: Redo the keycap theming
authorMatthias Clasen <mclasen@redhat.com>
Wed, 28 Oct 2015 11:10:30 +0000 (07:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 28 Oct 2015 14:19:00 +0000 (10:19 -0400)
Use a style class directly on the frame. This is easier to reuse.

gtk/gtkshortcutlabel.c
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 907761c88be3bfe7619d8f71dcb8a12c234fc6ab..12f14678b715ae00c6fd722963a73bc80ce6c61e 100644 (file)
@@ -175,6 +175,7 @@ display_shortcut (GtkContainer    *self,
         gtk_container_add (self, dim_label ("+"));
 
       frame = gtk_frame_new (NULL);
+      gtk_style_context_add_class (gtk_widget_get_style_context (frame), "keycap");
       gtk_widget_show (frame);
 
       gtk_container_add (self, frame);
index a39e8fa94bf32e6b004bd06ac892df87be9b8338..45916e67eb599d3a20175c1e65ddd12bb7a93dd6 100644 (file)
@@ -3447,7 +3447,7 @@ shortcutswindow .round .button label {
   padding: 0;
 }
 
-shortcutswindow GtkShortcutLabel .frame {
+.frame.keycap {
   background-color: #fefefe;
   border: 1px solid #cecece;
   border-radius: 5px;
index 0ef4bd00424b56248e01cd3c03d20acc93ff3500..89e913daae8c2721e71117d4815df03859b96096 100644 (file)
@@ -4660,7 +4660,7 @@ shortcutswindow .round .titlebar .button.titlebutton label,
 .titlebar shortcutswindow .round .button.titlebutton label {
   padding: 0; }
 
-shortcutswindow GtkShortcutLabel .frame {
+.frame.keycap {
   background-color: #fefefe;
   border: 1px solid #cecece;
   border-radius: 5px;
index 1fcd53b9b8567e59b113d49e16a9fc2ed0aafbb9..c47800718faca6d3047adec1f6544b7433c3f672 100644 (file)
@@ -4833,7 +4833,7 @@ shortcutswindow .round .titlebar .button.titlebutton label,
 .titlebar shortcutswindow .round .button.titlebutton label {
   padding: 0; }
 
-shortcutswindow GtkShortcutLabel .frame {
+.frame.keycap {
   background-color: #fefefe;
   border: 1px solid #cecece;
   border-radius: 5px;